package connect4swt.gui;

import game.Player;

import org.eclipse.swt.widgets.Canvas;

public abstract class BoardFactory {	
	
	public static BoardFactory getFactory(String gameName) {
		
		if(gameName.equals("Connect4"))
		{
			return new Connect4BoardFactory();
		}
		else if(gameName.equals("Checkers")){
			return new CheckersBoardFactory();			
		}
		
		return null;
	}
	
	public BoardFactory(){}
	
	public abstract Board createBoard(Canvas gameCanvas, Player me, Player opponent, int gameID);

		
}
